﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PPAP.Model
{
    /// <summary>
    /// 实体类PPAR 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class PPAR
    {
        public PPAR()
        { }
        #region Model
        private int? _id;
        private string _pparno;
        private int? _partid;
        private int? _status;
        private DateTime? _ppardate;
        private int? _iswithoutsample;
        private string _deliverypq;
        private string _deliverycompany;
        private DateTime? _deliverynotedate;
        private string _deliverynotenumber;
        private int? _submissionlevel;
        private int? _iscapabilitydocument;
        private int? _iscapabilitypart;
        private string _capabilityfeedback;
        private string _partrelatedresult;
        private string _processrelatedresult;
        private string _finalresult;
        private string _partrelatedresultreason;
        private string _processrelatedresultreason;
        private string _finalresultreason;
        private DateTime? _resubmissiondate;
        private string _deviationsheet;
        private DateTime? _deviationexpiredate;
        private string _samplingreportno;
        private string _samplingreportstatus;
        private string _samplingreportfjid;
        private string _samplingreportauthor;
        private string _quanlityengineer;
        private string _quanlitymanager;
        private string _quanlityvp;
        private string _decisiontext;
        private string _explanations;
        private string _pparversion;
        private int? _approvalstatusbyqm;
        private int? _approvalstatusbyvp;
        private string _reasondisapprovalbyqm;
        private string _reasondisapprovalbybp;
        private string _fjid;
        private int? _FINALSTATUS;
        private int _ISSPECIFICATIONS;

        private string _SPECIFY;
        /// <summary>
        /// 说明
        /// </summary>
        public string SPECIFY
        {
            get { return _SPECIFY; }
            set { _SPECIFY = value; }
        }

        private int _oldstatus;
        /// <summary>
        /// 用于存放ppar禁用后，老的状态；以防误操作
        /// </summary>
        public int Oldstatus
        {
            get { return _oldstatus; }
            set { _oldstatus = value; }
        }

        private string _submittedby;
        /// <summary>
        /// 供应商提交人
        /// </summary>
        public string Submittedby
        {
            get { return _submittedby; }
            set { _submittedby = value; }
        }

        private int _IsInapp;
        /// <summary>
        /// 是否已设置Inapplicable
        /// </summary>
        public int IsInapp
        {
            get { return _IsInapp; }
            set { _IsInapp = value; }
        }
        private string _Reportvesion;
        /// <summary>
        /// Report版本号
        /// </summary>
        public string Reportvesion
        {
            get { return _Reportvesion; }
            set { _Reportvesion = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        private string _Qeuser;
        /// <summary>
        /// QE负责人
        /// </summary>
        public string Qeuser
        {
            get { return _Qeuser; }
            set { _Qeuser = value; }
        }
        private DateTime _Planedppardate;
        /// <summary>
        /// 计划供应商提交时间
        /// </summary>
        public DateTime Planedppardate
        {
            get { return _Planedppardate; }
            set { _Planedppardate = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        private DateTime _Actualppardate;
        /// <summary>
        /// 实际供应商提交时间
        /// </summary>
        public DateTime Actualppardate
        {
            get { return _Actualppardate; }
            set { _Actualppardate = value; }
        }
        private int _Issendmail;
        /// <summary>
        /// 提醒供应商提交PPAR的邮件是否已发送
        /// </summary>
        public int Issendmail
        {
            get { return _Issendmail; }
            set { _Issendmail = value; }
        }

        private string _QEFJID;
        /// <summary>
        /// QE附件ID
        /// </summary>
        public string QEFJID
        {
            get { return _QEFJID; }
            set { _QEFJID = value; }
        }
        private DateTime? _ENDTIME;

        /// <summary>
        /// PPAR结束时间
        /// </summary>
        public DateTime? ENDTIME
        {
            get { return _ENDTIME; }
            set { _ENDTIME = value; }
        } 

        /// <summary>
        /// Are non-conformities relative to customer specifications present ?
        /// </summary>
        public int ISSPECIFICATIONS
        {
            get { return _ISSPECIFICATIONS; }
            set { _ISSPECIFICATIONS = value; }
        }

        /// <summary>
        /// Final状态
        /// </summary>
        public int? FINALSTATUS
        {
            get { return _FINALSTATUS; }
            set { _FINALSTATUS = value; }
        }
        /// <summary>
        /// id
        /// </summary>
        public int? ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// ppap no
        /// </summary>
        public string PPARNO
        {
            set { _pparno = value; }
            get { return _pparno; }
        }
        /// <summary>
        /// 部件I
        /// </summary>
        public int? PARTID
        {
            set { _partid = value; }
            get { return _partid; }
        }
        /// <summary>
        /// status
        /// </summary>
        public int? STATUS
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? PPARDATE
        {
            set { _ppardate = value; }
            get { return _ppardate; }
        }
        /// <summary>
        /// 是否无样件
        /// </summary>
        public int? ISWITHOUTSAMPLE
        {
            set { _iswithoutsample = value; }
            get { return _iswithoutsample; }
        }
        /// <summary>
        /// delivered parts quantity
        /// </summary>
        public string DELIVERYPQ
        {
            set { _deliverypq = value; }
            get { return _deliverypq; }
        }
        /// <summary>
        /// delivery company
        /// </summary>
        public string DELIVERYCOMPANY
        {
            set { _deliverycompany = value; }
            get { return _deliverycompany; }
        }
        /// <summary>
        /// delivery note date
        /// </summary>
        public DateTime? DELIVERYNOTEDATE
        {
            set { _deliverynotedate = value; }
            get { return _deliverynotedate; }
        }
        /// <summary>
        /// Delivery note number
        /// </summary>
        public string DELIVERYNOTENUMBER
        {
            set { _deliverynotenumber = value; }
            get { return _deliverynotenumber; }
        }
        /// <summary>
        /// Submission level
        /// </summary>
        public int? SUBMISSIONLEVEL
        {
            set { _submissionlevel = value; }
            get { return _submissionlevel; }
        }
        /// <summary>
        /// PPAR documents ready for sampling
        /// </summary>
        public int? ISCAPABILITYDOCUMENT
        {
            set { _iscapabilitydocument = value; }
            get { return _iscapabilitydocument; }
        }
        /// <summary>
        /// PPAR part ready for sampling
        /// </summary>
        public int? ISCAPABILITYPART
        {
            set { _iscapabilitypart = value; }
            get { return _iscapabilitypart; }
        }
        /// <summary>
        /// Capability Feedback
        /// </summary>
        public string CAPABILITYFEEDBACK
        {
            set { _capabilityfeedback = value; }
            get { return _capabilityfeedback; }
        }
        /// <summary>
        /// 部件相关结果
        /// </summary>
        public string PARTRELATEDRESULT
        {
            set { _partrelatedresult = value; }
            get { return _partrelatedresult; }
        }
        /// <summary>
        /// 流程相关结果
        /// </summary>
        public string PROCESSRELATEDRESULT
        {
            set { _processrelatedresult = value; }
            get { return _processrelatedresult; }
        }
        /// <summary>
        /// 最终结果
        /// </summary>
        public string FINALRESULT
        {
            set { _finalresult = value; }
            get { return _finalresult; }
        }
        /// <summary>
        /// 部件相关结果
        /// </summary>
        public string PARTRELATEDRESULTREASON
        {
            set { _partrelatedresultreason = value; }
            get { return _partrelatedresultreason; }
        }
        /// <summary>
        /// 流程相关结果
        /// </summary>
        public string PROCESSRELATEDRESULTREASON
        {
            set { _processrelatedresultreason = value; }
            get { return _processrelatedresultreason; }
        }
        /// <summary>
        /// 最终结果
        /// </summary>
        public string FINALRESULTREASON
        {
            set { _finalresultreason = value; }
            get { return _finalresultreason; }
        }
        /// <summary>
        /// 重新提交时间
        /// </summary>
        public DateTime? RESUBMISSIONDATE
        {
            set { _resubmissiondate = value; }
            get { return _resubmissiondate; }
        }
        /// <summary>
        /// Deviation sheet
        /// </summary>
        public string DEVIATIONSHEET
        {
            set { _deviationsheet = value; }
            get { return _deviationsheet; }
        }
        /// <summary>
        /// Deviation过期时间
        /// </summary>
        public DateTime? DEVIATIONEXPIREDATE
        {
            set { _deviationexpiredate = value; }
            get { return _deviationexpiredate; }
        }
        /// <summary>
        /// Sampling Report No
        /// </summary>
        public string SAMPLINGREPORTNO
        {
            set { _samplingreportno = value; }
            get { return _samplingreportno; }
        }
        /// <summary>
        /// Sampling Report Status
        /// </summary>
        public string SAMPLINGREPORTSTATUS
        {
            set { _samplingreportstatus = value; }
            get { return _samplingreportstatus; }
        }
        /// <summary>
        /// SampleReport附件id
        /// </summary>
        public string SAMPLINGREPORTFJID
        {
            set { _samplingreportfjid = value; }
            get { return _samplingreportfjid; }
        }
        /// <summary>
        /// people who release sample report
        /// </summary>
        public string SAMPLINGREPORTAUTHOR
        {
            set { _samplingreportauthor = value; }
            get { return _samplingreportauthor; }
        }
        /// <summary>
        /// Quanlity engineer
        /// </summary>
        public string QUANLITYENGINEER
        {
            set { _quanlityengineer = value; }
            get { return _quanlityengineer; }
        }
        /// <summary>
        /// Quanlity manager
        /// </summary>
        public string QUANLITYMANAGER
        {
            set { _quanlitymanager = value; }
            get { return _quanlitymanager; }
        }
        /// <summary>
        /// Quanlity VP
        /// </summary>
        public string QUANLITYVP
        {
            set { _quanlityvp = value; }
            get { return _quanlityvp; }
        }
        /// <summary>
        /// Decision text
        /// </summary>
        public string DECISIONTEXT
        {
            set { _decisiontext = value; }
            get { return _decisiontext; }
        }
        /// <summary>
        /// Explanations
        /// </summary>
        public string EXPLANATIONS
        {
            set { _explanations = value; }
            get { return _explanations; }
        }
        /// <summary>
        /// 版本号
        /// </summary>
        public string PPARVERSION
        {
            set { _pparversion = value; }
            get { return _pparversion; }
        }
        /// <summary>
        /// 最终结果QM审核状态
        /// </summary>
        public int? APPROVALSTATUSBYQM
        {
            set { _approvalstatusbyqm = value; }
            get { return _approvalstatusbyqm; }
        }
        /// <summary>
        /// 最终结果VP审核状态
        /// </summary>
        public int? APPROVALSTATUSBYVP
        {
            set { _approvalstatusbyvp = value; }
            get { return _approvalstatusbyvp; }
        }
        /// <summary>
        /// Resaon for disapproval by QM
        /// </summary>
        public string REASONDISAPPROVALBYQM
        {
            set { _reasondisapprovalbyqm = value; }
            get { return _reasondisapprovalbyqm; }
        }
        /// <summary>
        /// Reason for disapproval by VP
        /// </summary>
        public string REASONDISAPPROVALBYBP
        {
            set { _reasondisapprovalbybp = value; }
            get { return _reasondisapprovalbybp; }
        }
        /// <summary>
        /// 附件ID
        /// </summary>
        public string FJID
        {
            set { _fjid = value; }
            get { return _fjid; }
        }


        private string _qlevel;
        private string _elevel;

        /// <summary>
        /// QLEVEL
        /// </summary>
        public string QLEVEL
        {
            set { _qlevel = value; }
            get { return _qlevel; }
        }
        /// <summary>
        /// ELEVEL
        /// </summary>
        public string ELEVEL
        {
            set { _elevel = value; }
            get { return _elevel; }
        }

        #endregion Model

    }
}

